< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03101500.xhp

(section: defint) (bookmark: bm_id3149811)
DefInt statement

DefInt ステートメント

DefInt Statement [Runtime]
DefInt ステートメント [実行時](hd_id3149811.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3149762.2)

(/section: defint)

Syntax:
構文:(hd_id3148686.3)

Defxxx Characterrange1[, Characterrange2[,...]]
Defxxx Characterrange1[, Characterrange2[,...]](par_id3156023.4)

Parameters:
パラメータ:(hd_id3156344.5)

Characterrange: Letters that specify the range of variables that you want to set a default data type for.
Characterrange: デフォルトのデータ型の設定対象である変数の範囲を指定する文字。(par_id3147560.6)

xxx: Keyword that defines the default variable type:
xxx: デフォルトの変数型を定義するキーワード。(par_id3150398.7)

Keyword: Default variable type
Keyword: デフォルトの変数型(par_id3154365.8)

DefInt: Integer
DefInt: 整数(par_id3125863.9)

Example:
例:(hd_id3154123.10)

REM Prefix definitions for variable types
REM 変数型のプレフィックスの定義(par_id3151042.12)

DefBool b
DefBool b(par_id3156424.13)

DefDate t
DefDate t(par_id3159254.14)

DefDbL d
DefDbL d(par_id3150440.15)

DefInt i
DefInt i(par_id3155855.16)

DefLng l
DefLng l(par_id3152885.17)

DefObj o
DefObj o(par_id3148646.18)

DefVar v
DefVar v(par_id3153951.19)

Sub ExampleDefInt
Sub ExampleDefInt(par_id3146924.21)

iCount=200 REM iCount is an implicit integer variable
iCount=200 REM ここで iCount は整数変数として解釈されます(par_id3153728.22)

end sub
end sub(par_id3150010.23)


< Prev / Next >